#ifndef __ICON_LABEL_H__
#define __ICON_LABEL_H__

#include <QFrame>

class QString;
class QHBoxLayout;

/**
 * An object which display its integer value by showing that many copies of
 * the icon.
 */
class IconLabel : public QFrame
{
  Q_OBJECT

public:
  /**
   * @param iconFile filename of the icon BMP
   * @param label string to show next the the icons
   * @param value initial value of the IconLabel
   * @param parent parent of this IconLabel
   */
  IconLabel (const QString &iconFile, const QString & label,
             int value = 3, QWidget *parent = 0);

public slots:
  /**
   * Sets the value of the IconLabel to value
   *
   * @param value new value of IconLabel
   */
  void setValue (int value);

private:
  QHBoxLayout *_layout;
  QPixmap _icon;
};

#endif
